package tcTest;

import ent.Ent1;
import ent.Ent2;

public class TcTest {

	public static Ent1 ent1;
	public static Ent2 ent2;
	
	public TcTest(){
		ent1 = new Ent1();
		ent2 = new Ent2();
		ent1.ent2 = ent2;
		ent2.ent1 = ent1;
	}
	
	public void test(){
		for(int i =0;i<999;i++){
			ent1 = new Ent1();
			ent2 = new Ent2();
			ent1.ent2 = ent2;
			ent2.ent1 = ent1;
			System.out.println("ent1 = "+ent1+" , ent1.ent2 = "+ent1.ent2+" , id = "+ent1.id);
			System.out.println("ent2 = "+ent2+" , ent2.ent1 = "+ent2.ent1+" , id = "+ent2.id);
			System.out.println("-------------------------");
		}
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		TcTest t = new TcTest();
		t.test();
	}

}
